package net.lanelife.casino.caipiao.dto.admin;

import java.util.Date;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.common.dto.TransientDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

public class ActivityCreateDTO extends TransientDTO<Integer> {

	private static final long serialVersionUID = 7333520365569673936L;

	@NotBlank
	@Length(min = 2, max = 10)
	private String code;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String name;
	
	@NotBlank
	@Length(min = 2, max = 255)
	private String caption;
	
	@NotNull
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date beginTime;
	
	@NotNull
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date endTime;
	
	@NotBlank
	@Length(min = 2, max = 255)
	private String url;
	
	@NotBlank
	private String prizeTypeCode;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPrizeTypeCode() {
		return prizeTypeCode;
	}

	public void setPrizeTypeCode(String prizeTypeCode) {
		this.prizeTypeCode = prizeTypeCode;
	}

	
}
